package cn.weiron.fun.controller;

import cn.weiron.fun.service.EmployeeService;
import cn.weiron.fun.vo.EmployeeVo;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;

/**
 * (Employee)表控制层
 *
 * @author makejava
 * @since 2022-10-12 19:45:56
 */
@RestController
@RequestMapping("/employee")
public class EmployeeController {
    /**
     * 服务对象
     */
    @Resource
    private EmployeeService employeeService;


    /**
     * 查询数据
     *
     * @param id 主键
     * @return 删除是否成功
     */
    @GetMapping("/queryOne")
    public EmployeeVo queryOne(Integer id) {
        return employeeService.queryOne(id);
    }
}

